﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Benchmark
{
    /// <summary>
    /// This program benchmarks the Codeka Memcache client, and also provides benchmarks for
    /// the other two popular .Net clients, Enyim and BeITMemcache.
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                if (args.Length == 0 || string.Equals(args[0], "Codeka", StringComparison.OrdinalIgnoreCase))
                    ExecuteBenchmark.Execute<CodekaMemcacheWrapper>();
                else if (string.Equals(args[0], "Enyim", StringComparison.OrdinalIgnoreCase))
                    ExecuteBenchmark.Execute<EnyimWrapper>();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }
        }
    }
}
